![]() |
PATH![]() |
Converts a string, value, or byte array to a value of type MRJOSType .
public MRJOSType(String fromString);
public MRJOSType(int fromInt);
public MRJOSType(byte fromBytes[]);
This overloaded method defines a wrapper object that acts as the equivalent of a Mac OS 4-byte character constant (such as a creator, file type, or special folder name). When specifying a Mac OS creator, file type, or special folder name in the Java environment, you must refer to it using an MRJ OS type.
The "Finder Interface" chapter in Inside Macintosh: Macintosh Toolbox Essentials for information about file types, creators, and folder names.
Compares a value to one of type MRJOSType or an integer.
public final boolean equals (MRJOSType type);
public final boolean equals (int type);
For example, if you received an MRJ OS type in the variable myType , then
myType.equals(new MRJOSType ("TEXT")) ;
is true if the MRJ OS type is of type 'TEXT' .